package com.itlong.cloud.enumerate;

/**
 * <desc>
 *      派宝响应错误码枚举类
 * </desc>
 *
 * @createDate2021/1/6
 **/
public enum PadBotErrorCodeEnum {

    SUCCESS("10000", "成功"),
    NOT_PARAM("10001", "参数为空"),
    GET_MESSAGE_ERROR("10002", "获取信息失败"),
    SERVER_ERROR("10003", "服务器处理信息出错"),
    REQUEST_CHECK_FAILED("10004", "请求验证不通过"),
    PARAM_INVILID("10005", "参数非法"),
    REPEAT_OPERATE("10006", "重复操作"),
    REQUEST_EXPIRE("10007", "请求过期"),
    NOT_AUTH("10008", "没有权限"),
    NOT_MAP("20100", "没有地图")
    ;

    private String errorCode;
    private String description;

    PadBotErrorCodeEnum(String errorCode, String description){
        this.errorCode = errorCode;
        this.description = description;
    }

    public String getErrorCode() {
        return errorCode;
    }}
